from django.conf.urls.defaults import *
from django.conf import settings

urlpatterns = patterns('eventr.main.views',
    (r'^$','index'),
    (r'^list/$','list_events'),
    (r'^show/(?P<ev_id>\d+)/$','show'),
    (r'^add/$','add_event'),
    (r'^edit/(?P<ev_id>\d+)/$','edit_event'),
    (r'^map/$','event_map'),
)


# static
urlpatterns += patterns('',
	(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
)
